cmake_minimum_required(VERSION 3.0.0)
project(tcp_server LANGUAGES C CXX CUDA)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)


set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -lpthread -fPIC -g -O0")

include_directories("/home/htcz/WorkSpace/TDAlgorithmProcess/Include/boost_1_76_0")
add_library(
    ${PROJECT_NAME}
    # SHARED#general *.dll or *.so
    STATIC#general *lib or *.a
    ring_buffer.cpp
    ring_buffer.h
    server.cpp
    server.h
)

target_link_directories(${PROJECT_NAME} PUBLIC "/home/htcz/WorkSpace/TDAlgorithmProcess/Include/boost_1_76_0/stage/lib")
target_link_libraries(${PROJECT_NAME}   boost_thread)
install(TARGETS ${PROJECT_NAME} ARCHIVE DESTINATION ${PROJECT_SOURCE_DIR}/../../../bin_linux)
